package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperConfigBusActive implements Serializable {
    private Integer id;

    /**
     * 商务活动名称
     */
    private String activeName;

    /**
     * 活动内容
     */
    private String content;

    private Date indate;

    /**
     * 客户ID
     */
    private Integer cid;

    /**
     * 活动时间
     */
    private Date adate;

    /**
     * 创建者
     */
    private Integer author;

    /**
     * 活动结果
     */
    private String result;

    /**
     * 活动类型（1-拜访；2-致电；3-接待；4-其他）
     */
    private Integer activeType;

    /**
     * 活动时间（1-上午；2-下午）
     */
    private Integer adateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 商务活动名称
     */
    public String getActiveName() {
        return activeName;
    }

    /**
     * 商务活动名称
     */
    public void setActiveName(String activeName) {
        this.activeName = activeName;
    }

    /**
     * 活动内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 活动内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    public Date getIndate() {
        return indate;
    }

    public void setIndate(Date indate) {
        this.indate = indate;
    }

    /**
     * 客户ID
     */
    public Integer getCid() {
        return cid;
    }

    /**
     * 客户ID
     */
    public void setCid(Integer cid) {
        this.cid = cid;
    }

    /**
     * 活动时间
     */
    public Date getAdate() {
        return adate;
    }

    /**
     * 活动时间
     */
    public void setAdate(Date adate) {
        this.adate = adate;
    }

    /**
     * 创建者
     */
    public Integer getAuthor() {
        return author;
    }

    /**
     * 创建者
     */
    public void setAuthor(Integer author) {
        this.author = author;
    }

    /**
     * 活动结果
     */
    public String getResult() {
        return result;
    }

    /**
     * 活动结果
     */
    public void setResult(String result) {
        this.result = result;
    }

    /**
     * 活动类型（1-拜访；2-致电；3-接待；4-其他）
     */
    public Integer getActiveType() {
        return activeType;
    }

    /**
     * 活动类型（1-拜访；2-致电；3-接待；4-其他）
     */
    public void setActiveType(Integer activeType) {
        this.activeType = activeType;
    }

    /**
     * 活动时间（1-上午；2-下午）
     */
    public Integer getAdateTime() {
        return adateTime;
    }

    /**
     * 活动时间（1-上午；2-下午）
     */
    public void setAdateTime(Integer adateTime) {
        this.adateTime = adateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", activeName=").append(activeName);
        sb.append(", content=").append(content);
        sb.append(", indate=").append(indate);
        sb.append(", cid=").append(cid);
        sb.append(", adate=").append(adate);
        sb.append(", author=").append(author);
        sb.append(", result=").append(result);
        sb.append(", activeType=").append(activeType);
        sb.append(", adateTime=").append(adateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperConfigBusActive other = (SuperConfigBusActive) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getActiveName() == null ? other.getActiveName() == null : this.getActiveName().equals(other.getActiveName()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getIndate() == null ? other.getIndate() == null : this.getIndate().equals(other.getIndate()))
            && (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
            && (this.getAdate() == null ? other.getAdate() == null : this.getAdate().equals(other.getAdate()))
            && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor()))
            && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()))
            && (this.getActiveType() == null ? other.getActiveType() == null : this.getActiveType().equals(other.getActiveType()))
            && (this.getAdateTime() == null ? other.getAdateTime() == null : this.getAdateTime().equals(other.getAdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getActiveName() == null) ? 0 : getActiveName().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getIndate() == null) ? 0 : getIndate().hashCode());
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        result = prime * result + ((getAdate() == null) ? 0 : getAdate().hashCode());
        result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode());
        result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
        result = prime * result + ((getActiveType() == null) ? 0 : getActiveType().hashCode());
        result = prime * result + ((getAdateTime() == null) ? 0 : getAdateTime().hashCode());
        return result;
    }
}